package com.es.handler;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EsResource<T> {
    private Long total;
    private Map<String, T> records;
    private Float maxScore;

    public boolean isEmpty(){
        return records.isEmpty();
    }
}
